home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / usleep.z / usleep
Encoding:
Text File  |  2002-10-03  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. uuuusssslllleeeeeeeepppp((((3333CCCC))))                                                          uuuusssslllleeeeeeeepppp((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      usleep - suspend execution for an interval
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt uuuusssslllleeeeeeeepppp ((((uuuusssseeeeccccoooonnnnddddssss____tttt sssseeeeccccoooonnnnddddssss))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _u_s_l_e_e_p() function suspends the current thread from execution for the
  18.      number of microseconds specified by the _s_e_c_o_n_d_s argument.  Because of
  19.      other activity, or because of the time spent in processing the call, the
  20.      actual suspension time may be longer than the amount of time specified.
  21.  
  22.      The _s_e_c_o_n_d_s argument must be less than 1,000,000.  If the value of
  23.      _s_e_c_o_n_d_s is 0, the call has no effect.
  24.  
  25.      The _u_s_l_e_e_p() function uses the high resolution sleep function:
  26.      _n_a_n_o_s_l_e_e_p() to suspend execution of a thread.
  27.  
  28. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  29.      Upon successful completion, a 0 value is returned.  Otherwise, -1 is
  30.      returned and _e_r_r_n_o is set to indicate the error.  If the time interval
  31.      specified is 1,000,000 or more microseconds, _e_r_r_n_o is set to _E_I_N_V_A_L and
  32.      -1 is returned from _u_s_l_e_e_p().
  33.  
  34. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  35.      nanosleep(2).
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.